<?php
class Core_Model_Exception extends Exception {

	protected $_params = array();

	public function getParam($name=null) {
		if ($name===null)
			return $this->_params;
		else
			return isset($this->_params[$name]) ? $this->_params[$name] : null;
	}

	public function setParam($name, $value) {
		$this->_params[$name] = $value;
		return $this;
	}

}